package top.infopub.mgr.bpa.dao;

import org.apache.ibatis.annotations.Param;
import top.infopub.model.bpa.BudgetContract;
import top.infopub.model.bpa.BudgetContractExample;

import java.util.List;

public interface BudgetContractDao {
    long countByExample(BudgetContractExample example);

    int deleteByExample(BudgetContractExample example);

    int deleteByPrimaryKey(String id);

    int insertBatch(List<BudgetContract> records);

    int insert(BudgetContract record);

    int insertSelective(BudgetContract record);

    BudgetContract selectOneByExample(BudgetContractExample example);

    List<BudgetContract> selectByExamplePaging(@Param("example") BudgetContractExample example, @Param("offset") int offset, @Param("limit") int limit);

    List<BudgetContract> selectByExample(BudgetContractExample example);

    BudgetContract selectByPrimaryKey(String id);

    List<BudgetContract> selectByGudgetId(String budgetId);

    int updateByExampleSelective(@Param("record") BudgetContract record, @Param("example") BudgetContractExample example);

    int updateByExample(@Param("record") BudgetContract record, @Param("example") BudgetContractExample example);

    int updateByPrimaryKeySelective(BudgetContract record);

    int updateByPrimaryKey(BudgetContract record);

    int deleteByContractId(@Param("contractId") String contractId);
}